
#include "B_GameState.h"

B_GameState::B_GameState(B_GameStateHandler* handler) : m_handler(handler) 
{ 

//irrlicht-specific
	//TODO: add code to pass these down
    m_device = (irr::IrrlichtDevice*)handler->getAsset("IRR_DEVICE");
	m_driver = m_device->getVideoDriver();
	m_smgr = m_device->getSceneManager();
	m_env = m_device->getGUIEnvironment();
//end irr-spec

}


//irrlicht-specific
// draws a colored rectangle (function for easy 2D graphics testing)
void B_GameState::DrawRect(irr::video::SColor color, irr::core::rect<irr::s32> screenPos)
{
    m_driver->draw2DRectangle(color, screenPos);

}
//end irr-spec
